# the minimum version of CMake.
cmake_minimum_required(VERSION 3.5.0)
project(imageknifectest)

# 用于ImageknifePro纯C接口测试

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)

set(IMAGEKNIFE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../)

include_directories(${IMAGEKNIFE_PATH}/library/src/main/cpp/include/imageknifec)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

add_library(imageknifectest SHARED ${CMAKE_CURRENT_SOURCE_DIR}/get_cache_image_test.c)

target_link_directories(imageknifectest PUBLIC ${IMAGEKNIFE_PATH}/library/build/default/intermediates/libs/default/${OHOS_ARCH})

target_link_libraries(imageknifectest PUBLIC libimageknifepro.so libhilog_ndk.z.so libace_ndk.z.so)